package com.yyk.yykywd.mvvm.view_model

import com.yyk.yykywd.bean.BaseBean
import com.yyk.yykywd.mvvm.model.GetBase
import com.yyk.yykywd.mvvm.model.MeetingModel

/**
 * 文件描述：
 * Created by guo on 2019-12-11.
 */
class MeetingEndViewModel : BaseViewModel() {
    var id: String = ""
    private val meetingModel = MeetingModel()

    fun endMeeting(money: String, num: String, summary: String) {
        meetingModel.meetingEnd(id, money, num, summary, object : GetBase {
            override fun getInfo(base: BaseBean) {
                setBaseValue(base)
            }

            override fun onError(e: String) {
            }
        })
    }
}